package com.example.springboot.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.springboot.controller.dto.LikesDTO;
import com.example.springboot.entity.Likes;
import com.example.springboot.mapper.LikesMapper;
import com.example.springboot.service.ILikesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户点赞表 服务实现类
 * </p>
 *
 * @author
 *
 */
@Service
public class LikesServiceImpl extends ServiceImpl<LikesMapper, Likes> implements ILikesService {

    @Override
    public Page<LikesDTO> pageWithAuthor(Page<LikesDTO> pageInfo, QueryWrapper<Likes> queryWrapper) {
        return baseMapper.selectArticlePageWithAuthor(pageInfo, queryWrapper);
    }
}
